package com.sk.bilibili.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sk.bilibili.annotation.DefaultValue;
import com.sk.bilibili.other.ExtraMap;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

/**
* @author 邵康
* @date 2021/11/22 23:08
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Member{

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String phone;
    private String password;
    @DefaultValue("default/memberAvatar.jpg")
    private String avatar;
    @TableField(exist = false)
    private MultipartFile avatarFile;
    private String nickName;
    private Integer sex;
    private Integer grade;
    @TableField(fill = FieldFill.INSERT)
    private Long createDate;
    @ApiModelProperty("皮肤Id必须有  默认为 1")
    private Integer skinId;
    private Integer state;
    @ApiModelProperty("0  代表  没有挂件")
    private Integer pendantId;
    private Integer coinNum;
    private Integer experience;// 经验值
    private String signature;
    private Integer fansNum;
    private Boolean history;//是否打开历史
    @TableField(exist = false)
    private ExtraMap extra=new ExtraMap();

}
